package com.xuwang.mapper;

import com.xuwang.dto.SupervisoryCheckDto;
import com.xuwang.pojo.SupervisoryCheck;
import com.xuwang.vo.SupervisoryCheckSelectVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface SupervisoryCheckMapper {
    /**
     * delete by primary key
     *
     * @param id primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey (List<String> list);

    /**
     * insert record to table
     *
     * @param record the record
     * @return insert count
     */
    int insert (SupervisoryCheck record);

    int insertOrUpdate (SupervisoryCheck record);

    int insertOrUpdateSelective (SupervisoryCheck record);

    /**
     * insert record to table selective
     *
     * @param record the record
     * @return insert count
     */
    int insertSelective (SupervisoryCheck record);

    /**
     * select by primary key
     *
     * @param id primary key
     * @return object by primary key
     */
    SupervisoryCheck selectByPrimaryKey (Integer id);

    /**
     * update record selective
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective (SupervisoryCheck record);

    /**
     * update record
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey (SupervisoryCheck record);

    int updateBatch (List<SupervisoryCheck> list);

    int updateBatchSelective (List<SupervisoryCheck> list);

    int batchInsert (@Param("list") List<SupervisoryCheck> list);

    List<SupervisoryCheckDto> selectAll (@Param("page") int page, @Param("limit") int limit, @Param("date") String date, SupervisoryCheckSelectVo supervisoryCheckSelectVo);
}